package com.example.elasticsearch.entity;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Author syz
 * @Date 2020-09-17  16:41
 * @Description: 商品实体
 */
@Data
@Document(indexName = "commodious")
public class Commodity implements Serializable {



    /*商品ID*/
    private String id;

    /*商品名称*/
    private String name;

    /*商品价格*/
    private BigDecimal price;

}
